package com.imooc.infra.repository.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 18870
 * @since 2023-05-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_data_center_storage")
public class TDataCenterStorage implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    /**
     * 规则表主键id
     */
    @TableField("rule")
    private Long rule;

    /**
     * 存储当前规则下的指标所用的数据源，默认是data-center
     */
    @TableField("data_source")
    private String dataSource;

    /**
     * 自动生成表前缀，默认为t_generate_，生成表的规则：t_generate_{en_name}_{dimension}_{date}
     */
    @TableField("table_prefix")
    private String tablePrefix;

    /**
     * 创建时间
     */
    @TableField("gmt_create")
    private LocalDateTime gmtCreate;

    /**
     * 修改时间
     */
    @TableField("gmt_modified")
    private LocalDateTime gmtModified;

    /**
     * 状态 1未删除 0 删除
     */
    @TableField("status")
    private Integer status;


}
